package com.atguigu.service.impl;

import com.atguigu.dao.DeployEnvDao;
import com.atguigu.dao.impl.DeployEnvDaoImpl;
import com.atguigu.pojo.DeployEnv;
import com.atguigu.pojo.Page;
import com.atguigu.service.DeployEnvService;

import java.util.List;

public class DeployEnvServiceImpl implements DeployEnvService {
    DeployEnvDao deployEnvDao=new DeployEnvDaoImpl();
    @Override
    public void addDeployEnv(DeployEnv deployEnv) {
        deployEnvDao.addDeployEnv(deployEnv);
    }

    @Override
    public void updateDeployEnv(DeployEnv deployEnv) {
        deployEnvDao.updateDeployEnv(deployEnv);
    }

    @Override
    public void deleteDeployEnvById(String id) {
        deployEnvDao.deleteDeployEnvById(id);
    }

    @Override
    public DeployEnv queryDeployEnvById(String id) {
        return deployEnvDao.queryDeployEnvById(id);
    }


    @Override
    public List<DeployEnv> queryDeployEnvs() {
        return deployEnvDao.queryDeployEnvs();
    }

    @Override
    public Integer queryForPageTotalCount() {
        return deployEnvDao.queryForPageTotalCount();
    }

    @Override
    public List<DeployEnv> queryForPageItems(Integer begin, Integer pageSize) {
        return deployEnvDao.queryForPageItems(begin, pageSize);
    }


}
